package ioc11;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test2 {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ioc11/spring2.xml");
        SomeBean someBean1 = (SomeBean) ac.getBean("someBean1");
        SomeBean someBean2 = (SomeBean) ac.getBean("someBean2");
        System.out.println(someBean1);
        System.out.println(someBean2);
    }
}
